flushClass($("#class"));

function selectClass() {
    var classid=$("#class").val();

    var json={"classid":classid,userid:"0",page:"1"};
    flushTable("http://139.199.200.112/dtpr/index.php?exam-teach-users-wrong",JSON.stringify(json),"#page",".table tbody");
}

function addLine(data) {
    var parent=$(".table tbody");
    var tr=$("<tr>\n" +
        "    <td>"+data.queue+"</td>\n" +
        "    <td>"+data.times+"</td>\n" +
        "    <td>"+data.subject+"</td>\n" +
        "    <td>"+data.volume+"</td>\n" +
        "    <td>"+data.section+"</td>\n" +
        "    <td>"+data.question+"</td>\n" +
        "</tr>");

    parent.append(tr);
}